package com.zxq.uart.controller;

import com.zxq.uart.frame.decoder._02PayResult;
import com.zxq.uart.frame.encoder._02PayOrderCmd;
import com.zxq.uart.result.ResultVO;
import com.zxq.uart.service.impl.PlatformExchange;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class _02PayController extends PlatformExchange<_02PayOrderCmd, _02PayResult> {


    @Override
    public Integer getCmd() {
        return 2;
    }

    @PostMapping("exchange/02")
    @Override
    public ResultVO<_02PayResult> exchange(@RequestBody _02PayOrderCmd order) {
        return super.exchange(order);
    }

    @Override
    public _02PayResult getResult() {
        _02PayResult payResult = new _02PayResult();
        return payResult;
    }

}
